export const formList = [
  {
    key: "dict_id",
    label: "所属分类",
    type: "dict",
    dictId: "3",
    placeholder: "请选择",
  },
  {
    key: "title",
    label: "标题",
    placeholder: "请输入",
  },
  {
    key: "import_type",
    label: "来源",
    type: "slot",
    placeholder: "请输入",
  },
  {
    key: "created_at",
    label: "创建时间",
    type: "dateRange",
    showTime: true,
    placeholder: "请选择",
  },
  {
    key: "url",
    label: "网址链接",
    placeholder: "请输入",
  },
  {
    key: "is_record",
    label: "是否收录",
    type: "slot",
    placeholder: "请选择",
  },
  {
    key: "username",
    label: "操作人",
    placeholder: "请输入",
  },
  {
    key: "updated_at",
    label: "操作时间",
    type: "dateRange",
    showTime: true,
    placeholder: "请选择",
  },
];

export const columns = [
  {
    slots: {title: "number"},
    dataIndex: "id",
    width: 80
  },
  {
    title: "所属分类",
    dataIndex: "dict",
    slots: { customRender: "dict" },
  },
  {
    slots: {title: "btTitle"},
    dataIndex: "title"
  },
  {
    title: "来源", // 导入方式
    dataIndex: "import_type",
    slots: { customRender: "import_type" },
  },
  // {
  //   title: "来源引擎",
  //   dataIndex: "source_type",
  // },
  // {
  //   title: "来源地址",
  //   dataIndex: "source_url",
  // },
  {
    slots: {title: "wzUrl", customRender: "url"},
    dataIndex: "url"
  },
  {
    slots: {title: "fxTime",},
    dataIndex: "updated_at"
  },
  {
    title: "应用组件",
    dataIndex: "component",
    slots: { customRender: "component" },
  },
  {
    title: "IP",
    dataIndex: "ip",
  },
  {
    slots: {title: "fjDesc", customRender: "aircraft"},
    dataIndex: "aircraft",
    width: 110
  },
  {
    slots: {title: "emailDesc", customRender: "email"},
    dataIndex: "email",
    width: 110
  },
  {
    slots: {title: "ygll",},
    dataIndex: "estimate_flow",
    width: 120
  },
  {
    title: "是否收录",
    dataIndex: "is_record",
    slots: { customRender: "is_record" },
    width: 120
  },
  {
    title: "收录量",
    dataIndex: "collected_quantity",
    width: 120
  },
  {
    slots: {title: "bd",},
    dataIndex: "yd_weight",
    width: 120
  },
  {
    slots: {title: "sm"},
    dataIndex: "sm_weight",
    width: 120
  },
  {
    slots: {title: "sg",},
    dataIndex: "sg_weight",
    width: 120
  },
  {
    slots: {title: "three",},
    dataIndex: "three_weight",
    width: 120
  },
  {
    slots: {title: "bzDesc",},
    dataIndex: "description",
    width: 400
  },
  {
    title: "页面截图",
    dataIndex: "screenshot",
    width: 220,
    slots: { customRender: "screenshot" },
  },
  {
    title: "操作人",
    dataIndex: "user",
    slots: { customRender: "username" },
  },
  {
    slots: {title: "czTime"},
    dataIndex: "created_at",
  },
  {
    title: "操作",
    slots: { customRender: "action" },
    width: 340,
    fixed: 'right'
  },
];
